package com.xiyou.luckdraw.api.dal.mapper.luckyelite;

import com.xiyou.luckdraw.api.dal.entitys.AnswerBank;
import com.xiyou.luckdraw.api.dto.answer.AnswerBankListRequest;
import com.xiyou.luckdraw.common.tkmapper.TkMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AnswerBank2Mapper extends TkMapper<AnswerBank> {

    int updateByPrimaryKeySelective(AnswerBank answer);

    /**
     * 查询答题列表
     * @param request
     * @return
     */
    List<AnswerBank> selectAnswerList(AnswerBankListRequest request);


    /**
     * 根据题目查询
     * @param answerTitle
     * @return
     */
    AnswerBank selectByAnswerTitle(String answerTitle);
}
